package com.diankangwo.factory.service.impl;

import com.diankangwo.factory.dao.TdSmsMapper;
import com.diankangwo.factory.entity.TdSms;
import com.diankangwo.factory.service.TdSmsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/** 第三方短信
 * Created by wuye on 2017/9/11.
 */
@Service("TdSmsService")
public class TdSmsServiceImpl implements TdSmsService {

    @Autowired
    private TdSmsMapper mapper;

    @Override
    @Transactional
    public void save(TdSms tdSms) {
        mapper.insert(tdSms);
    }

    @Override
    @Transactional
    public int update(TdSms tdSms) {
        return mapper.updateByPrimaryKey(tdSms);
    }
}
